import goodsData from '@/mock/goodsData.JSON'

export default{
  getDetailList:()=>{
    let goodsId = window.location.href.split('/').pop()
    let goods = goodsData.filter(item=>goodsId == item.id)
    return{
      code: 200,
      mag: "success",
      data: goods
    }
  }
}
